from App.Api import Api


@Api.route("/index", methods=["GET"])
def index():
    # obj = Sql(DB["131"])
    # obj.insert("test",{"id":5,"val":"2ddchttps//:index/page.com,D:s\d\r\d\ndsfd"})
    # obj.insert("test", [{"id": 10, "val": "2ddcsdsfd"},
    # {"id": 13, "val": "fdsfds"},{"id": 14, "val": "423frsdf"}])
    # data = obj.find("select * from test")
    # rd = Redis(DB["redis"]["config"])
    # rd.set_str("qwe", 123)
    # rd.del_str("qwe")
    # data = rd.get_str("qwe")
    data = {"123": 111, "1232": 222}
    return data
